/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: COFFEEWEN
 * Date: 2022-08-25
 * Time: 20:11
 */
public class Test {
    public static char findTheDifference(String s, String t) {
        char ans = 0;
        for (char c : s.toCharArray()){
            ans ^= c;
        }
        for (char c : t.toCharArray()){
            ans ^= c;
        }
        return ans;
    }

    public static void main(String[] args) {
        char n = findTheDifference("abcd","abcde");
        System.out.println(n);
    }
}
